package com.zyq.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("acl_permission")
public class AclPermission {
    @TableId
    private String id;
    private String pid;
    private String name;
    private Integer type;
    private String permissionValue;
    private String path;
    private String component;
    private String icon;
    private Integer status;
    private String isDeleted;
    private LocalDateTime gmtCreate;
    private LocalDateTime gmtModified;
    // 用来添加子菜单
    @TableField(exist = false)
    private List<AclPermission> children = new ArrayList<>();
}
